#pragma once
#include <osg/Vec3d>
#include "CmdHandler3.h"
class Ent;
class CurveRevolutionHandler : public CmdHandler3
{
	Q_OBJECT
public:
	Q_INVOKABLE CurveRevolutionHandler();
	~CurveRevolutionHandler();

	virtual void input(const QVariant& data, const QString& rawInput, CommandSource cs) override;

protected:
	void generateSurface();

	std::shared_ptr<Ent> m_axis;
	std::shared_ptr<Ent> m_curve;
	double m_angle;
};
